package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.iwhalecloud.bss.kite.common.constant.KeyConsts;
import com.iwhalecloud.bss.kite.cucc.common.constant.LocalKeyConsts;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.AttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;
import com.ztesoft.bss.common.util.ContextUtil;

/**
 * A、Z端客户经理联系电话
 */
public class AZManaPhoAttrHandler extends AbstractAttrHandler {
    @Override
    public void after(KiteAttr attr, KiteInst inst, AttrData data) {
        // 河南 以太网/SDH/光纤 A、Z端客户经理联系电话
        String provinceCode = ContextUtil.getLoginInfo().getUserInfo().getPostProvinceNbr();
        if (LocalKeyConsts.PROVINCE_HENAN.equals(provinceCode)) {
            attr.setIsNull(KeyConsts.IFTRUE_F);
        }
        super.after(attr, inst, data);
    }
}
